package com.niit.onlinemusicserver34.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.niit.onlinemusicserver34.model.domain.Song;
import com.niit.onlinemusicserver34.model.response.SongResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author hanli
 */

public interface SongMapper extends BaseMapper<Song> {

    /**
     * 查询 某个用户收藏歌曲大数据
     * @return  收藏歌曲列表
     */
    List<SongResponse> getSongByUserId(@Param("userId") Integer userId);

//    List<Integer> selectAllSongIds();

    List<Song> getSongsOfSongListId(Integer songListId);
}